/**
 * Created by LC on 2019/11/20
 */
package com.hw.paltfrom.controller.mainscreen;

import com.hw.paltfrom.service.mainscreen.CaseMainStatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 执法案件统计
 */
@RestController
@RequestMapping("statistics")
public class CaseMainStatisticController {

    @Autowired
    CaseMainStatisticService caseMainStatisticService;

    @RequestMapping("city")
    public Map<String,Object> cityStatistics(){
        return caseMainStatisticService.queryCityStatistic();
    }

    /**
     * 查询执法案件超限站统计
     * @return
     */
    @RequestMapping("station")
    public Map<String,Object> stationStatistics(){
        return caseMainStatisticService.queryStationStatistic();
    }

}
